<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<include file="Public:jquery" />
        <script type="text/javascript">
            $(function(){
            	submitstyle();
            });
        </script>
	</head>
	<body style="padding: 15px; background: #f2f2f2;">
		<ul class="act_this">
			<li class="this">应用授权</li>
			<li><a href="{:U('module',array('groupId'=>$_GET['groupId']))}">模块授权</a></li>
			<li><a href="{:U('action',array('groupId'=>$_GET['groupId']))}">操作授权</a></li>
		</ul>
		<div class="a_table">
		<form method="post" action="__URL__/setApp">
			<input type="hidden" name="groupId" VALUE="{$Think.get.id}" >
			<input type="hidden" name="module" value="Node">
			<table cellspacing="1" class="form_table">
				<tr>
					<td align="right" width="60">当前组</td>
					<td align="left">
						<select name="groupId" change="location.href='{:U('app')}&groupId='+this.options[this.selectedIndex].value;" class="input_text" style="width: auto;">
							<option value="">选择组</option>
							<php>foreach($groupList as $key=>$val){</php>
							<option value="{$key}"<php>if($key == $selectGroupId){</php> selected="selected"<php>}</php>>{$val}</option>
							<php>}</php>
						</select>
					</td>
				</tr>
				<tr>
					<td align="left" colspan="2" style="line-height: 24px;">
						<php>foreach($appList as $keys=>$vals){</php>
						<input type="checkbox" name="groupAppId[]" value="{$keys}"<php>foreach($groupAppList as $g=>$v){if ($keys == $v){echo ' checked="checked"';}}</php> /> {$vals} &nbsp; 
						<php>}</php>
					</td>
				</tr>
				<tr>
					<td align="left" colspan="2">
						<div class="submit_default_box">
							<input type="submit" class="submit_default" value="提交表单" />
							<span class="submit_default_icon" id="submit_icon"></span>
						</div>
					</td>
				</tr>
			</table>
		</form>
		</div>
	</body>
</html>	
	